package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 邮件发送记录表
 * @author yh
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class EmailRecord extends Model<EmailRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 删除标识：0、否 1、是
     */
    private Boolean deleted;

    /**
     * 发送目标用户id
     */
    private Long userId;

    /**
     * 发送内容
     */
    private String content;

    /**
     * 是否发送成功 0未成功 1成功
     */
    private Boolean state;
}
